home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0202.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1.2 KB  |  35 lines

  1. > I have written a program in Amos which involves a `laser beam`
  2. > being fired from one part of the screen to another.
  3. > To do this I just work out dy and dx ( one of these values
  4. > will be 1) and add them to the original points until the
  5. > destination is reached or it hits something.
  6. > It works fine when run through the editor, yet when compiled...
  7. > does not. Why???  I use real numbers for dx and dy - maybe
  8. > the compiler cannot deal with these or something?
  9. > The beam does not go in the right direction at all.
  10. > Has anyone got a list of inconsistencies in compiler/interpreter
  11. > operation? This is driving me up the wall.
  12. > D.O`Cuinn
  13.  
  14. Hi!
  15.  
  16. I would recommend you to follow Andy Churchs advice and
  17. only use integers in your game.
  18. You (and probably others on this list) may be interested
  19. to know that there is an efficiently programmed AMOS
  20. procedure for 100% integer line drawing in the AMOS
  21. procedure library on Aminet. This procedure can be integrated
  22. in your games very easily and modified to plot dotted
  23. lines or lines drawn with icons/bobs/blocks by replacing
  24. the "Plot x,y" command by "Paste Icon x,y,icon".
  25. The procedure works well once compiled too.
  26.  
  27. Regards,
  28.     Chris
  29.  
  30.  
  31.